function addElement(className){
    
    var parentHTML = $("."+className).filter(":first").html();
    var child = document.createElement("tr");
    child.innerHTML = parentHTML;
    var removeButton = document.createElement("button");
    text = document.createTextNode("Премахни");
    removeButton.appendChild(text);
    $(removeButton).attr("type","button");
    $(removeButton).click(function(){
       $(this).parent().remove();
    
    });
    child.appendChild(removeButton);
    $(child).attr("class",className);
    $("."+className).filter(":last").after(child);
    
}